package cn.ainit.fx.pixiao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ainit.fx.pixiao.entity.FxPiXiao;
import cn.ainit.fx.pixiao.entity.FxPiXiaoItem;
@Service
public class FxPiXiaoServiceImpl implements FxPiXiaoService {

	private FxPiXiaoDao fxPiXiaoDao;
	
	@Resource
	public void setFxPiXiaoDao(FxPiXiaoDao fxPiXiaoDao) {
		this.fxPiXiaoDao = fxPiXiaoDao;
	}
	
	@Override
	public boolean saveSprk(FxPiXiao fxPiXiao, List<FxPiXiaoItem> fxPiXiaoItems)
			throws Exception {
		return this.fxPiXiaoDao.saveSprk(fxPiXiao, fxPiXiaoItems);
	}

	@Override
	public boolean updateSprk(FxPiXiao fxPiXiao,
			List<FxPiXiaoItem> fxPiXiaoItems) throws Exception {
		return this.fxPiXiaoDao.updateSprk(fxPiXiao, fxPiXiaoItems);
	}
	@Override
	public String execPiXiaoRuku(String pxId, String stockMan) throws Exception {
		return this.fxPiXiaoDao.execPiXiaoRuku(pxId, stockMan);
	}
	@Override
	public String execChengShou(String pxId, String finMan) throws Exception {
		return this.fxPiXiaoDao.execChengShou(pxId, finMan);
	}
}
